package com.yxw.springmvc.userBehavior.convert;

import com.yxw.springmvc.userBehavior.model.CustPriv;
import com.yxw.springmvc.userBehavior.request.CustPrivaAddRequest;
import org.springframework.stereotype.Service;

/**
 * Created by hp on 2016/10/10.
 */
@Service
public class CustPrivConvert {

    public CustPriv convert(CustPrivaAddRequest request){
        CustPriv custPriv = new CustPriv();
        custPriv.setCustCode(request.getCustCode());
        custPriv.setPrivCode(request.getPrivCode());
        return custPriv;
    }

}
